/**
 * 屏幕适配相关demo
 */
import 'package:flutter_benchu/utils/commonPkg.dart';

class AptDemoPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _AptDemoPageState();
}

class _AptDemoPageState extends State<AptDemoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('屏幕适配')),
      body: Column(
        children: [
          // 屏幕适配
          Container(
            width: 375.w,
            height: 50.h,
            color: Colors.lightBlue,
            child: Text('屏幕适配'),
          ),

          Text(
            '我的文字大小在设计稿上是20dp，不会随着系统的文字缩放比例变化',
            style: TextStyle(
              color: Colors.black,
              fontSize: 20.sp,
            ),
          ),

          Text(
            envs.userUrl,
            style: TextStyle(
              color: Colors.black,
              fontSize: 20.sp,
            ),
          ),
        ],
      ),
    );
  }
}
